package services

import "mishop/models"

type IBrandService interface {
	FindByID(product_id uint) (*models.Brand, error)
	FindByBrandID(page, rows int, category_id uint) (models.Pages, error)
}
type BrandService struct {
	model models.IBrand
}

func (p *BrandService) FindByID(product_id uint) (*models.Brand, error) {
	return p.model.FindByID(product_id)
}

func (p *BrandService) FindByBrandID(page, rows int, category_id uint) (models.Pages, error) {
	return p.model.FindByBrandID(page, rows, category_id)
}

func NewBrandService(model models.IBrand) IBrandService {
	return &BrandService{model: model}
}
